package com.zry.study.ui.activity

import com.zry.study.R
import com.zry.study.databinding.ActivityLoginBinding
import com.zry.study.mvp.presenter.LoginPresenter
import com.zry.study.ui.base.BaseActivity
import kotlinx.android.synthetic.main.common_title.*

class LoginActivity : BaseActivity() {
	private var loginBinding: ActivityLoginBinding? = null
	private var loginPresenter: LoginPresenter? = null
	override fun getLayoutId(): Int {
		return R.layout.activity_login
	}
	
	override fun initData() {
		loginBinding = viewDataBinding as ActivityLoginBinding?
		loginPresenter = LoginPresenter(this, loginBinding!!)
		loginBinding?.handler = LoginPresenter(this, loginBinding!!)
		
		initView()
		
	}
	
	private fun initView() {
		titleCenterText.text = getString(R.string.login)
	}
	
}
